package at.fhooe.im440.pandora.logic.entities;

import java.awt.Graphics2D;
import java.awt.geom.Point2D;


import at.fhooe.im440.clock.Timer;
import at.fhooe.im440.core.Core;
import at.fhooe.im440.pandora.events.Event;

public class Clock extends Entity implements Timer {

	private int r;
	private float x, y;
	Graphics2D g;
	private at.fhooe.im440.pandora.graphic.Clock gameGraphic;
	
	
	public Clock(String name, Core c, int r, float x, float y){
		super(name, c);
		this.r = r;
		this.x = x;
		this.y = y;
		
		this.gameGraphic = new at.fhooe.im440.pandora.graphic.Clock(r, x, y);
	}
	

	public void setPosition(float x, float y){
		//
	}
	
	public void render(Graphics2D g){
		gameGraphic.draw(g);
	}
	
	@Override
	public Point2D getPosition() {
		return new Point2D.Float(x,y);	
	}

	@Override
	public void notify(Event e) {
		// TODO Auto-generated method stub
		gameGraphic.tick();
	}


	@Override
	public void tick() {
		gameGraphic.tick();
		// TODO Auto-generated method stub
		
	}

}
